package orm

import (
	"context"
	"go-quick/interface/ilogger"
	"go-quick/interface/iorm"
	"time"
)

type (
	QDatabase struct {
		Error        error
		RowsAffected int64
		Statement    iorm.IStatement
		clone        int
		log          ilogger.ILogger
	}

	QSession struct {
		DryRun                   bool
		PrepareStmt              bool
		NewDB                    bool
		Initialized              bool
		SkipHooks                bool
		SkipDefaultTransaction   bool
		DisableNestedTransaction bool
		AllowGlobalUpdate        bool
		FullSaveAssociations     bool
		QueryFields              bool
		Context                  context.Context
		Logger                   ilogger.ILogger
		NowFunc                  func() time.Time
		CreateBatchSize          int
	}
)
